package com.aaa.service.impl;

import com.aaa.dao.PublisherMapper;
import com.aaa.entity.Publisher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PublisherServiceImpl implements PublisherMapper {
   @Resource
    PublisherMapper publisherMapper;

    @Override
    public List<Publisher> find() {
        return publisherMapper.find();
    }

    @Override
    public int add(Publisher publisher) {
        return publisherMapper.add(publisher);
    }

    @Override
    public int update(Publisher publisher) {
        return publisherMapper.update(publisher);
    }

    @Override
    public int delete(Integer id) {
        return publisherMapper.delete(id);
    }

    @Override
    public List<Publisher> findpage(Integer pageSize, Integer pageNum) {
        return publisherMapper.findpage(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return publisherMapper.findcount();
    }
}
